package cn.itcast.ks.api;

import cn.itcast.ks.common.ResponseResult;
import cn.itcast.ks.pojo.dtos.NotWorkDto;
import cn.itcast.ks.pojo.dtos.ShowWorkDto;
import cn.itcast.ks.pojo.dtos.WorkDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(description = "作业功能模块")
public interface WorkControllerApi {

    @ApiOperation("发布作业")
    public ResponseResult publishWork(WorkDto dto);

    @ApiOperation("展示学生作业列表")
    public ResponseResult showWorks(ShowWorkDto dto);

    @ApiOperation("学生提交作业（学生接口）")
    public ResponseResult submitWork(Integer workId, Integer status);

    @ApiOperation("查询作业列表（学生接口）")
    public ResponseResult findStudentWork(ShowWorkDto dto);

    @ApiOperation("查询作业详情（学生接口）")
    public ResponseResult findStudentAssignment(Integer assid);

    @ApiOperation("查询时间段未提交作业的学生以及次数")
    public ResponseResult findNotWorkByTime(NotWorkDto dto);

}
